package com.group.three.controller.commonController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/common")
@CrossOrigin
public class CommonController {

    @GetMapping("/common/site")
    @ResponseBody
    public Map<String,Object> site(){
        Map<String, Object> map = new HashMap<>();
        map.put("msg","success");
        map.put("code",200);
        return map;
    }

    @GetMapping("common/slider/LOGIN")
    @ResponseBody
    public Map<String,Object> login(){
        return null;
    }



}
